<?php
//this code include in all template
$templateItem = $this->templateItem;
if($templateItem)
    $allBlocks = $templateItem->getAllBlocks();
else
    $allBlocks = array();




?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" href="/public/css/front.css" type="text/css" media="screen">
    <link rel="stylesheet" href="/public/css/960/960.css" type="text/css" media="screen">


    <?php if(!$this->isAdmin)
    echo '
   <link rel="stylesheet" href="/public/css/front_global.css" type="text/css" media="screen">
    <script type="text/javascript" src="/public/js/jquery-1.8.3.min.js"></script>
    <script language="javascript" src="/public/js/lib.js"></script>
    <script language="javascript" src="/public/js/extend.jquery.js"></script>';
    ?>

</head>
<script type="text/javascript">

</script>
<body>

<?php
echo $this->partial('header.php');
?>

<div>
    <?php
    echo $this->partial("block_container.php", array("divId"=>"abcd",
        "allBlocks"=>$allBlocks));
    ?>
    <?php
    echo $this->partial("block_container.php", array("divId"=>"efgh",
        "allBlocks"=>$allBlocks));
    ?>
    <div style="padding: 10px; border: 2px solid #8b0000">
        <div style="float: left; width: 300px; padding: 7px">
            <?php
            echo $this->partial("block_container.php", array("divId"=>"ijkl",
                "allBlocks"=>$allBlocks));
            ?>
        </div>
        <div style="float: left; width: 300px; padding: 7px">
            <?php
            echo $this->partial("block_container.php", array("divId"=>"mnop",
                "allBlocks"=>$allBlocks));
            ?>
        </div>
        <div style="clear: both"></div>
    </div>

    <?php echo $this->layout()->content ?>
</div>
<?php
echo $this->partial('footer.php');
?>
</body>
</html>
